import Vue from 'vue'
import VueRouter from 'vue-router'

import login from './views/login'
import home from './views/home'
import welcome from "./views/welcome/welcome.vue";

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    { path: '/login', component: login },
    { path: '/', component: home ,
    redirect: {path:'/welcome'},
    children:[
      {
        path:'welcome',
      component:welcome
      }
    ]
  }
  ]
})

export default router